﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="routedatalist.aspx.cs" Inherits="LTJ.WebPage.WebSite.routedatalist" %>
<%@ Register TagPrefix="win" TagName="head" Src="~/customcontrol/head.ascx" %>
<%@ Register TagPrefix="win" TagName="foot" Src="~/customcontrol/foot.ascx" %>
<%@ Register TagPrefix="dyjU" TagName="ajaxloadportlist" Src="~/datacontrol/ajaxloadportlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxallportlist" Src="~/datacontrol/ajaxallportlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxcarrierlist" Src="~/datacontrol/ajaxcarrierlist.ascx"%>
<%@ Register TagPrefix="dyjU" TagName="ajaxroutelist" Src="~/datacontrol/ajaxroutelinelist.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>搜索结果</title>
    <link href="<%=config.Weburl %>css/comm.css" rel="stylesheet" type="text/css" />
    <link href="<%=config.Weburl %>css/lightview.css" type="text/css" rel="stylesheet" />
    <script src="<%=config.Weburl %>js/jquery.js" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/jquery-exchange.js" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/jquery-choose.js" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/prototype.js" type="text/javascript"></script>
    <script src="<%=config.Weburl%>js/ajaxhelper.js" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/lightview.js" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/effects.js" type="text/javascript"></script>
    <script src="<%=config.Weburl %>js/table.js" type="text/javascript"></script>
    <script src="<%=config.Weburl%>js/common.js" type="text/javascript"></script>
</head>
<body>
    <win:head runat="server" ID="head" />
    <div class="cot">
        <div class="seh">
            <div class="lt">
                <table class="logo">
                <tr><td align="center">
                    <%if (companyinfo != null && companyinfo.logo.ToString() != "")
                      { %>
                    <a title="<%=companyinfo.cname%>" href="<%=config.Weburl %>">
                        <img alt="<%=companyinfo.cname%>" src="<%=companyinfo.logo %>" onload="try{img_loaded(this,85,85);}catch(e){alert(e.message);}"/></a>
                    <%}
                      else
                      { %>
                    <a title="运价中国" href="<%=config.Weburl %>">
                        <img alt="" src="images/logo.gif" onload="try{img_loaded(this,85,85);}catch(e){alert(e.message);}"/></a>
                    <%} %>
                </td></tr>
                </table>
                <p class="t"></p>
            </div>
            <div class="sehnr" id="menu">
                <ul class="ixt" id="menut">
				    <li>整柜</li>
				    <li>拼箱</li>
				    <li>航空</li>
				    <li>拖卡</li>
				    <li>特种</li>
			    </ul>
                <div class="ixcn" id="menunr">
				    <div class="con">
                        <div class="sehsk">
                            <p class="lt1">
                            </p>
                            <div class="sok1 popxg" style="z-index:103">
							    <p class="ip1" style="width:94px;" id="ajaxloadportdatalist_str"><%=loadport == "" ? "起运港" : loadport%></p>
                                <input type="hidden" id="ajaxloadportdatalist_value" name="ajaxloadportdatalist_value" value="<%=loadport == "" ? "起运港" : loadport%>"/>
							    <span class="an"></span>
							    <div class="cn" style="width:246px;" id="ajaxloadportdatalist_div">
                                    <dyjU:ajaxloadportlist runat="server" ID="acorploadportlist" />
							    </div>
						    </div>
							<div class="sok1 popxg" style="z-index:102">
							    <p class="ip1" style="width:94px;" id="ajaxallportdata_str"><%=destport == "" ? "目的港" : destport%></p>
                                <input type="hidden" id="ajaxallportdata_value" name="ajaxallportdata_value" value="<%=destport == "" ? "目的港" : destport%>"/>
							    <span class="an"></span>
							    <div class="cn" style="width:246px;" id="ajaxallportdata_div">
                                    <dyjU:ajaxallportlist runat="server" ID="acorpallportlist" />
							    </div>
						    </div>
                            <div class="sok1 popxg" style="z-index: 101">
                                <p class="ip1" style="width: 94px;" id="ajaxroutelinedatalist_str"><%=routestr==""?"航线":rname%></p>
                                <input type="hidden" id="ajaxroutelinedatalist_value" name="ajaxroutelinedatalist_value" <%if(routestr!=""){%>value="<%=routestr%>"<%}%>/>
                                <span class="an"></span>
                                <div class="cn" style="width: 246px;" id="ajaxroutelinedatalist_div">
                                    <dyjU:ajaxroutelist runat="server" ID="aroutelist" />
                                </div>
                            </div>
                            <div class="sok1 popxg" style="z-index: 100">
                                <p class="ip1" id="ajaxcarrierlist_str" style="width:94px"><%=boatname == "" ? "船公司" : bname%></p>
                                <input type="hidden" id="ajaxcarrierlist_value" name="ajaxcarrierlist_value" <%if(boatname!=""){%>value="<%=boatname%>"<%}%>/>
					            <span class="an"></span>
					            <div class="cn" style="width:246px;" id="ajaxcarrierlist_div">
                                    <dyjU:ajaxcarrierlist runat="server" ID="acarrlist" />
					            </div>
                            </div>
                            <p class="an3">
                                <a title="" href="#" onclick="SearchList()">
                                    <img alt="" src="images/so_xan.gif" /></a></p>
                        </div>
                    </div>
                    <div class="con">
					
					<div class="sehsk">
						<p class="lt1"></p>
						<div class="sok2 blt">
							<input name="" type="text" class="so3" value="装运港" onblur="if(this.value==''||this.value=='装运港'){this.value='装运港';this.className='so3';}" onfocus="if(this.value=='装运港'){this.value='';this.className='so4';}" style="width:120px; height:27px;" />
						</div>
						<div class="sok3">
							<input name="" type="text" class="so3" value="卸运港" onblur="if(this.value==''||this.value=='卸运港'){this.value='卸运港';this.className='so3';}" onfocus="if(this.value=='卸运港'){this.value='';this.className='so4';}" style="width:150px; height:27px;" />
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:95px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:123px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:95px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:123px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<p class="an3"><a title="" href="#"><img alt="" src="images/so_xan.gif" /></a></p>
					</div>
					
				</div>
				<div class="con">
					
					<div class="sehsk">
						<p class="lt1"></p>
						<div class="sok2 blt">
							<input name="" type="text" class="so3" value="装运港" onblur="if(this.value==''||this.value=='装运港'){this.value='装运港';this.className='so3';}" onfocus="if(this.value=='装运港'){this.value='';this.className='so4';}" style="width:95px; height:27px;" />
						</div>
						<div class="sok3">
							<input name="" type="text" class="so3" value="卸运港" onblur="if(this.value==''||this.value=='卸运港'){this.value='卸运港';this.className='so3';}" onfocus="if(this.value=='卸运港'){this.value='';this.className='so4';}" style="width:96px; height:27px;" />
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:80px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:113px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:80px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:113px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:80px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:113px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<p class="an3"><a title="" href="#"><img alt="" src="images/so_xan.gif" /></a></p>
					</div>
					
				</div>
				<div class="con">
					
					<div class="sehsk">
						<p class="lt1"></p>
						<div class="sok2 blt">
							<input name="" type="text" class="so3" value="装运港" onblur="if(this.value==''||this.value=='装运港'){this.value='装运港';this.className='so3';}" onfocus="if(this.value=='装运港'){this.value='';this.className='so4';}" style="width:152px; height:27px;" />
						</div>
						<div class="sok3">
							<input name="" type="text" class="so3" value="卸运港" onblur="if(this.value==''||this.value=='卸运港'){this.value='卸运港';this.className='so3';}" onfocus="if(this.value=='卸运港'){this.value='';this.className='so4';}" style="width:180px; height:27px;" />
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:157px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:190px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<p class="an3"><a title="" href="#"><img alt="" src="images/so_xan.gif" /></a></p>
					</div>
					
				</div>
				<div class="con">
					
					<div class="sehsk">
						<p class="lt1"></p>
						<div class="sok2 blt">
							<input name="" type="text" class="so3" value="装运港" onblur="if(this.value==''||this.value=='装运港'){this.value='装运港';this.className='so3';}" onfocus="if(this.value=='装运港'){this.value='';this.className='so4';}" style="width:95px; height:27px;" />
						</div>
						<div class="sok3">
							<input name="" type="text" class="so3" value="卸运港" onblur="if(this.value==''||this.value=='卸运港'){this.value='卸运港';this.className='so3';}" onfocus="if(this.value=='卸运港'){this.value='';this.className='so4';}" style="width:96px; height:27px;" />
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:80px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:113px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:80px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:113px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="sok1 popxg">
							<p class="ip1" style="width:80px;"></p>
							<span class="an"></span>
							<div class="cn" style="width:113px;">
								<table border="0" cellpadding="0" cellspacing="0" class="edtb3">
									<tbody>
										<tr class="tp">
											<td>1</td>
										</tr>
										<tr class="tp">
											<td>4</td>
										</tr>
										<tr class="tp">
											<td>7</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<p class="an3"><a title="" href="#"><img alt="" src="images/so_xan.gif" /></a></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="cot">
        <div class="adnr">
            <div class="adnr4">
                <p class="lt">
                    找到相关信息 <b class="f_f96900"><%=countstr%></b> 条</p>
                <p class="rt">
                    <%=pageStr%>
                </p>
            </div>
            <div class="adnr3">
                <table border="0" cellpadding="0" cellspacing="0" class="edtb">
                    <thead>
                        <tr>
                            
                            <td>起运港</td>
                            <td>目的港</td>
                            <td>船司</td>
                            <td>中转港</td>
                            <td>码头</td>
                            <td>20GP</td>
                            <td>40GP</td>
                            <td>40HQ</td>
                            <td>附加费用</td>
                            <td>截关</td>
                            <td>开船</td>
                            <td>航程</td>
                            <td>有效期</td>
                            <td>&nbsp;</td>
                        </tr>
                    </thead>
                    <tbody>
                        <%
                            int divi = 100;
                            foreach (LTJ.Entity.RouteBaseInfo rbInfo in routesTab)
                            { %>
                        <tr>
                            
                            <td><%=rbInfo.loadename == "" ? "&nbsp;" : rbInfo.loadename%></td>
                            <td>
                            <div class="hdiv" style="z-index:<%=divi+100%>;">
					            <p class="tit"><%=rbInfo.destename == "" ? "&nbsp;" : rbInfo.destename%></p>
					            <p class="hdv" style="width:120px;">
                                    <span>所属航线:<%=rbInfo.routeseaname%></span>
                                    <span>所属国家:<%=rbInfo.contryname%></span>
                                    <span>中文名:<%=rbInfo.destname%></span>
                                    <span>英文名:<%=rbInfo.destename%></span>
					            </p>
				            </div>
                            </td>
                            <td><%if(rbInfo.routeid>0){%><%=rbInfo.routebename == "" ? "&nbsp;" : rbInfo.routebename%><%}else{%><%=rbInfo.bname == "" ? "&nbsp;" : rbInfo.bcode%><%}%></td>
                            <td><%=rbInfo.tranename == "" ? "直航" : rbInfo.tranename%></td>
                            <td><%=rbInfo.pier == "" ? "&nbsp;" : rbInfo.pier%></td>
                            <td><%=GetSeaPrce(rbInfo,1)%></td>
                            <td><%=GetSeaPrce(rbInfo,2)%></td>
                            <td><%=GetSeaPrce(rbInfo,3)%></td>
                            <td>
                            <div class="hdiv" style="z-index:<%=divi+100%>;">
							    <p class="tit">AMS/ENS:<%=rbInfo.AMS_ENS == "" ? "&nbsp;" : rbInfo.AMS_ENS%></p>
							    <p class="hdv" style="width:160px;">
								    <span>文件费:<%=GetOtherPrice(rbInfo.DOC, 1)%></span>
						            <span>AMS/ENS:<%=GetOtherPrice(rbInfo.AMS_ENS, 1)%></span>
						            <span>THC:<%=GetOtherPrice(rbInfo.THC, 1)%></span>
						            <span>箱单:<%=GetOtherPrice(rbInfo.XSF, 1)%></span>
							    </p>
						    </div>
                            </td>
                            <td><%=rbInfo.schbegin == "" ? "&nbsp;" : rbInfo.schbegin%></td>
                            <td><%=rbInfo.schend == "" ? "&nbsp;" : rbInfo.schend%></td>
                            <td><%=rbInfo.range.Trim()==""?"&nbsp;":rbInfo.range.Trim() %></td>
                            <td><%=rbInfo.validbegin + "—" + rbInfo.validend%></td>
                            <td>
                                <a href="routedatadetail.aspx?rid=<%=rbInfo.id %>" rel="iframe" title="线路编号<%=rbInfo.routenum%> :: :: width:800,height:600" class="lightview">详细</a>
                            </td>
                        </tr>
                        <%divi--;}%>
                    </tbody>
                    <tfoot>
                        <tr>
                            <td colspan="25"><%=pageList%></td>
                        </tr>
                    </tfoot>
                </table>
            </div>

            <i class="tp"></i><i class="bt"></i>
        </div>
    </div>
    <win:foot runat="server" ID="foot1" />
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        choose("popxg");
        jQuery("#menu").Exchange({ MIDS: "menut", CIDS: "menunr", timer: 0, count: 4 });

        jQuery(".hdiv").find(".tit").hover(function () {
            var hdv = jQuery(this).next();
            if (hdv.is(':visible')) {
                hdv.slideUp();
            } else {
                hdv.slideDown();
            }
        });
    });

    function SearchList() {
        var loadstr = document.getElementById("ajaxloadportdatalist_str").innerHTML;
        if (loadstr == "起运港") {
            loadstr = "";
        }
        loadstr = encodeURIComponent(loadstr).replace("'", "%27");

        var deststr = document.getElementById("ajaxallportdata_str").innerHTML;
        if (deststr == "目的港") {
            deststr = "";
        }
        deststr = encodeURIComponent(deststr).replace("'", "%27");

        var routestr = document.getElementById("ajaxroutelinedatalist_value").value;
        var carrstr = document.getElementById("ajaxcarrierlist_value").value;

        var rstr = encodeURIComponent(document.getElementById("ajaxroutelinedatalist_str").innerHTML);
        var bstr = encodeURIComponent(document.getElementById("ajaxcarrierlist_str").innerHTML);

        window.location.href = "routedatalist.aspx?acttype=<%=atype%>&loadport=" + loadstr + "&destport=" + deststr + "&routestr=" + routestr + "&boatname=" + carrstr + "&rname=" + rstr + "&bname=" + bstr;
    }
</script>
</html>
